<?php
session_start();

if ( $_SESSION['manager']['is_admin'] )
{
    if ( $_GET['only_my']==1 )
    {
	$_SESSION['filter']['tasks']['only_my'] = 1;
    }
    else
    {
	unset($_SESSION['filter']['tasks']['only_my']);
    }

    print json_encode(array('code'=>200));
}
?>
